#ifndef VEC2DOGREEXT_H_
#define VEC2DOGREEXT_H_

#include <Ogre.h>
#include "./Vec2d.h"

template<typename T>
Vec2f operator-( const Ogre::Vector3& v1, const Vec2d<T>& v2 ) {
	return Vec2f(
		v1.x - static_cast<float>( v2.x ),
		v1.y - static_cast<float>( v2.y )
	);
}

template<typename T>
Vec2f operator-( const Vec2d<T>& v1, const Ogre::Vector3& v2 ) {
	return Vec2f(
		static_cast<float>( v1.x ) - v2.x,
		static_cast<float>( v1.y ) - v2.y
	);
}

#endif /* VEC2DOGREEXT_H_ */
